<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">
    <div class="aside">
        {template "left.html",'yellowpage'}
    </div>
    
    <div class="main">
    	
        <div><a href="{url("?module=$module&file=$file&action=$action&userid=$_userid")}" >管理证书</a>
        <a href="{url("?module=$module&file=$file&action=add&userid=$_userid")}">添加证书</a></div>
        <table cellpadding="0" cellspacing="1" class="table_list">
          <tr>
        <th width="125">图片</th>
        <th >证书名称</th>
        <th >发证机构</th>
        <th width="80">审核状态</th>
        <th width="110">操作</th>
          </tr>
        {loop $infos $info}
        <tr>
        <td>
        <img src="{$info[thumb]}" width="120">
        </td>
        <td>{$info[name]}</td>
        <td>{$info[organization]}</td>
        <td>{if $info[status]==1}已通过{elseif $info[status]==2}未通过{else}待审核{/if}</td>
        <td><a href="?module={$module}&file={$file}&action=edit&id={$info[id]}&userid={$_userid}">修改</a> | 
        <a href="javascript:confirmurl('?module={$module}&file={$file}&action=delete&id={$info[id]}&userid={$_userid}','确认要删除此证书吗？')">删除</a></td>
        </tr>
        {/loop}
        </table>
      
    </div>
    
</div>


 
{template 'footer.html'}
<SCRIPT LANGUAGE="JavaScript">
<!--
$().ready(function() {
  $('form').checkForm(1);
});
//-->
</SCRIPT>

<script type="text/javascript" src="images/js/validator.js"></script>